package com.lizhi.yun.db.dao;/**
 * @program: spring-boot
 * @name UppUserDao
 * @description:
 * @author: lizhi
 * @create: 2020-04-11 17:08
 */

import com.lizhi.yun.db.pojo.UppUserPOJO;
import com.lizhi.mybatis.interceptor.PageBounds;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *@program: spring-boot
 *@name UppUserDao
 *@description:
 *@author: lizhi
 *@create: 2020-04-11 17:08
 */
@Mapper
public interface UppUserDao {

    public int insertRecord(UppUserPOJO record);//添加一条完整记录

    public int deleteById(String userAcct);//通过Id(主键)删除一条记录

    public int updateByIdSelective(UppUserPOJO record);//按Id(主键)修改指定列的值

    public int updateById(UppUserPOJO record);//按Id(主键)修改所有列的值

    public UppUserPOJO selectById(String userAcct);//通过Id(主键)查询一条记录

    public List<UppUserPOJO> selectAll(UppUserPOJO record, PageBounds pageBounds);//根据条件查询

    public List<UppUserPOJO> selectByMap(Map<String, Object> paramMap, PageBounds pageBounds);//根据条件查询

    /**
     * 功能: 批量删除
     * @param listStr
     * @return int
     * 2018年8月1日 上午11:27:09
     */
    public int deleteByList(List<String> listStr);

    public String findRoleIdsByUserAccount(String userAcct);

    public int updatePwd(UppUserPOJO record);

    public int resetPwdbyId(@Param("userPwd") String userPwd, @Param("userAcct") String userAcct);

    public int unfreezebyId(@Param("userAcct") String userAcct);

    public List<UppUserPOJO> selectByRoleIds(@Param("roleIds") String roleIds);
}

